package com.springboot.utill;


import java.util.HashMap;
import java.util.Map;

public class resultUtil {

    public final static Map<String,Object> getResultObjectData(String errorcode, String errormsg, Object pd) {
        Map<String,Object> resultData = new HashMap<String, Object>();
        resultData.put("code", errorcode);
        resultData.put("message", errormsg);
        if(null != pd){
            resultData.put("data", pd);
        }
        return resultData;
    }


}
